package org.lib.postgresqlhello.record.shard;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 分表注解
 * @author ben
 * @date 2021-11-18 22:43:23 CST
 */
@Retention(RUNTIME)
@Target(TYPE)
public @interface TableShard {

	/**
	 * 要替换的表名
	 * @author ben
	 * @date 2021-11-18 22:42:41 CST
	 * @return
	 */
	String tableName();
	
	/**
	 * 分表策略
	 * @author ben
	 * @date 2021-11-18 22:43:18 CST
	 * @return
	 */
	Class<? extends ITableShardStrategy> shardStrategy();
	
}
